package com.onlinescxhz.demo.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.onlinescxhz.demo.pojo.GoodsCategory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


public interface GoodsCategoryMapperDao extends BaseMapper<GoodsCategory> {
    @Select("select * from scxhzonline.goodscategory limit #{pageNum},#{pageSize}")
    List<GoodsCategory> selectPagemy(Integer pageNum, Integer pageSize );

    @Select("select count(*) from scxhzonline.goodscategory")
    Integer selectTot();
}
